<html>
<head><meta charset="utf-8"><title>ra_vfs and text ranges · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/ra_vfs.20and.20text.20ranges.html">ra_vfs and text ranges</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="195295360"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/ra_vfs%20and%20text%20ranges/near/195295360" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/ra_vfs.20and.20text.20ranges.html#195295360">(Apr 25 2020 at 17:51)</a>:</h4>
<p><span class="user-mention" data-user-id="133169">@matklad</span> how would you feel about <a href="https://github.com/rust-analyzer/ra_vfs/blob/bdecce9c6b753b825e040130efe25b1fe1674f85/src/lib.rs#L253" title="https://github.com/rust-analyzer/ra_vfs/blob/bdecce9c6b753b825e040130efe25b1fe1674f85/src/lib.rs#L253">https://github.com/rust-analyzer/ra_vfs/blob/bdecce9c6b753b825e040130efe25b1fe1674f85/src/lib.rs#L253</a> getting a <code>Vec&lt;TextRange&gt;</code> or similar? Or would you rather it only got a string like now?</p>



<a name="195296114"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/ra_vfs%20and%20text%20ranges/near/195296114" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/ra_vfs.20and.20text.20ranges.html#195296114">(Apr 25 2020 at 18:09)</a>:</h4>
<p>For incremental changeds? I feel it should rather be <code>Fn(&amp;mut String)</code></p>



<a name="195296484"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/ra_vfs%20and%20text%20ranges/near/195296484" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> std::Veetaha <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/ra_vfs.20and.20text.20ranges.html#195296484">(Apr 25 2020 at 18:18)</a>:</h4>
<p>What does overlay mean in this case?</p>



<a name="195296703"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/ra_vfs%20and%20text%20ranges/near/195296703" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/ra_vfs.20and.20text.20ranges.html#195296703">(Apr 25 2020 at 18:24)</a>:</h4>
<p>I think it's a combination of the on-disk file contents and the in-memory changes from the editor.</p>



<a name="195297003"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/ra_vfs%20and%20text%20ranges/near/195297003" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/ra_vfs.20and.20text.20ranges.html#195297003">(Apr 25 2020 at 18:32)</a>:</h4>
<p><span class="user-mention silent" data-user-id="133169">matklad</span> <a href="#narrow/stream/185405-t-compiler.2Fwg-rls-2.2E0/topic/ra_vfs.20and.20text.20ranges/near/195296114" title="#narrow/stream/185405-t-compiler.2Fwg-rls-2.2E0/topic/ra_vfs.20and.20text.20ranges/near/195296114">said</a>:</p>
<blockquote>
<p>For incremental changeds? I feel it should rather be <code>Fn(&amp;mut String)</code></p>
</blockquote>
<p>That makes sense, thanks</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>